#!/bin/bash

# Check Internet
ping -c 1 www.baidu.com &> /dev/null && echo -e "Internet: Connected" ||  echo -e "Internet: Disconnected"

# Check Version
gcc --version | head -n 1
gdb --version | head -n 1
python --version | head -n 1
python3 --version | head -n 1

# Check User
echo -e "User:"
who 

# Check Kernel
Kernel=(uname)
echo "Kernel Release:" $Kernel


# Check OS
OS=$(uname -o)
echo "System Type：" $OS

# Check Hostname
HOSTNAME=$(hostname)
echo "Hostname:" $HOSTNAME
Architecture=$(uname -m)
echo "Architecture: " $Architecture

# Check IP
IP=$(hostname -I)
echo "Internal IP:" $IP


# Check disk
df -h


